home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
new1091.zip
/
NEW.DOC
< prev
next >
Wrap
Text File
|
1991-10-15
|
6KB
|
184 lines
NEW
Copyright (c) 1989, 1990, 1991 John R. Pulliam Version 10/15/91
Released to the Public Domain for non-commercial use and for
commercial use by permission of the author.
PURPOSE
NEW is a utility program that displays a list of the files in
the specified directory that were created since 00:00 hours of
the current day, or optionally since midnight of any earlier day.
All files with attributes of Hidden, System, Read-Only, Archive,
Volume Label and Directory are displayed along with normal files.
The total number of files, total number of bytes in those files
and the free space on the drive are displayed at the end.
NEW is intended for use on IBM Compatible computers using any
versions of PC/MS-DOS of 2.0 or higher.
This program is patterned after the program by the same name
written by Jay Jervey, which is a great utility written in
Microsoft C. No source code that program or of any other program
and no disassembled code were used in this program.
This program was written just as a programming exercise and
because I wanted to define a "new" day as starting at 00:00 hours
rather than at 06:00 hours, as was done by others.
RUNNING NEW
NEW is invoked by entering input commands as shown below:
"NEW"
The current day, disk drive and directory is used.
"NEW/x d:"
The date used is "x" days prior to the current day. The
default is 0, the current day since midnight.
The drive used is "d:"
The default directory on drive "d" is used.
A file name of *.* is used by default.
"NEW/x d:\dir\file.ext"
The date used is "x" days prior to the current day,
as above.
The drive used is "d:"
The directory used is "dir" on drive "d".
The file name used is "file.ext". Wildcards * & ? may be
used in the file name and extension only.
A directory can not be specified unless the drive is
also specified.
FOR THE PROGRAMMER TYPES
There is a Conditional Assembly variable, DTYPE, provided in
the source code that changes the format of the date display.
The program must be re-assembled if you want to change this.
In case you do not have the Microsoft Assembler, two copies of the
executable file are provided with the names of NEW1.COM and NEW2.COM.
The one you prefer using can be renamed to NEW.COM.
NEW1.COM gives the dates in the mm-dd-yy format, (11-26-90 for
November 26, 1990) as below:
NEW - Version 10/15/91 - J. Pulliam
Directory of C:\MASM since 00:00, 10/14/91
X ASM 17609 10-14-91 08:29:48 ARC
NEW ASM 41907 10-15-91 12:25:20 R-O ARC
HEX2ASC ASM 1843 10-14-91 08:29:40 ARC
ANS BAT 337 10-14-91 16:29:32 ARC
INSTR ZIP 14093 10-14-91 08:30:50 ARC
NEW2 COM 2374 10-15-91 12:26:30 ARC
ANL BAT 339 10-14-91 16:31:54 ARC
NEW 1 39172 10-14-91 17:45:06 HDN SYS ARC
ABCDEFGH <DIR> 10-15-91 16:11:24 DIR
ABCDEFGH ABC <DIR> 10-15-91 16:11:24 DIR
NEW 3 40629 10-15-91 14:50:56 ARC
X COM 1072 10-15-91 17:15:00 R-O HDN SYS ARC
NEW 4 41088 10-15-91 19:14:16
NEW DOC 5557 10-15-91 12:38:34 ARC
NEW1 COM 2303 10-15-91 12:35:16 ARC
Total of 208323 bytes in 15 files
Total of 1390592 bytes free
NEW2.COM gives the dates in the dd-Mon-yy format, ( 3-Jun-91 for
June 3, 1991) as below:
NEW - Version 10/15/91 - J. Pulliam
Directory of C:\MASM\X since 00:00, 15-Oct-91
. <DIR> 15-Oct-91 16:11:24 DIR
.. <DIR> 15-Oct-91 16:11:24 DIR
ABC ABC 1 15-Oct-91 16:11:48 ARC
Y <DIR> 15-Oct-91 19:10:15 DIR
ABC MSS 33 15-Oct-91 20:35:58 ARC
CDE 33 15-Oct-91 20:35:58 ARC
12345678 <DIR> 15-Oct-91 11:29:40 DIR
12345678 AAA <DIR> 15-Oct-91 11:29:42 DIR
12345678 MSS 170 15-Oct-91 11:31:52 ARC
AAAAAAAA 170 15-Oct-91 11:32:34 ARC
PW SWP 1024128 15-Oct-91 12:06:58 ARC
Total of 1024535 bytes in 11 files
Total of 1353728 bytes free
An ERRORLEVEL of 0 is returned if NO error occurs.
An ERRORLEVEL of 1+ is returned if an error occurs.
The source code for NEW is being distributed for your own use.
A lot of work went into writing this program so please do not
remove any credit lines and try to pass it off as your own work.
You may make any modifications you wish for your own use, however
the modified program may NOT be distributed to others without
my permission.
This program is made available for use with no liability assumed by
the author.
MS-DOS, PC-DOS, IBM, etc. are copyrighted by well known companies.
CHANGES/BUG FIXES
This version is released as NEW1091 and replaces the previous
version of NEW0691. Changes made were:
1. Changed to display the extension of a sub-directory name,
such as "SUBDIR.A01".
Changes made in release NEW0691.
1. Changed to prevent displaying null file sizes & dates after
reporting INVALID ARGUMENT or INVALID DIRECTORY error messages.
2. Changed to prevent incorrectly trying to display a date that
is older than 1-Jan-80.
Changes made in release NEW0291.
1. Changed to display the volume label if one exists on the
specified drive & the root directory is specified.
Changes made in release NEW1190.
1. Changed to allow a file name to be used on the command line.
2. Changed to blank out the size field for directory names.
3. Made minor changes to the format of each displayed line.
Changes made in release NEW1089.
1. Correction made to allow the drive to be entered in lower case.
2. Correction made to report an invalid directory error.
3. The free space available on the drive is now shown "up to 100MB".
4. The file attributes are now displayed.
If you find any errors or have any suggestions for improvement,
please contact me at my residence below or on CanCom BBS at
216/477-3080.
John Pulliam
1324 Cypress Bend Circle
Melbourne, Fl 32934
407/255-7690